package cn.springcloud.alibaba.ums.controller;

import cn.springcloud.alibaba.core.base.Result;
// import cn.springcloud.alibaba.dao.entity.SysNotice;
// import cn.springcloud.alibaba.dao.mapper.SysNoticeMapper;
// import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/sys-notice")
public class SysNoticeController {

	// @Autowired
	// private SysNoticeMapper sysNoticeMapper;

	/*@GetMapping
	public Result<List<SysNotice>> getSysNotices() {
		Result<List<SysNotice>> result = new Result<>();
		List<SysNotice> sysNotices = sysNoticeMapper.selectList(
			Wrappers.<SysNotice>lambdaQuery().orderByDesc(SysNotice::getCreateTime)
		);
		result.setData(sysNotices);
		return result;
	}*/
}
